package com.hqq.structure.bridge;

/**
 * BridgeTest
 * Created by heqianqian on 2017/3/11.
 */
public class BridgeTest {
    public static void main(String[] args) {
        Bridge bridge = new MyBridge();

        Sourceable source1 = new Source1();
        bridge.setSource(source1);
        bridge.method();

        Sourceable source2 = new Source2();
        bridge.setSource(source2);
        bridge.method();
    }
}
